<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--1.form表单形式发送登录请求-->
<!--<form action="http://localhost:8080/v1/user/login" method="post">-->
<!--    用户名：<input type="text" name="username">-->
<!--    密码：<input type="password" name="password">-->
<!--    <input type="submit" value="登录">-->
<!--</form>-->

<!--2.通过JavaScript形式发送登录请求  http://localhost:8080/login.html-->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
    const data = {username:"aaa", password: "bbb"}
    axios.post("http://localhost:8080/v1/user/login", data).then(response => {
        console.log(response.data);
    })
</script>


</body>
</html>